package cn.edu.suse.epilepsy.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @Author: QingShu
 * @Date: 2024/7/10 0:00
 */
@Data
@TableName("tb_patient_info")
public class PatientInfo {
    @TableId(value = "uid", type = IdType.AUTO)
    private Integer id;
    @TableField("pa_name")
    private String name;
    @TableField("pa_sex")
    private String sex;
    @TableField("pa_addr")
    private String pa_addr;
    @TableField("pa_ctime")
    @JsonFormat(pattern = "yy-MM-dd HH-mm-ss", timezone = "Asia/Shanghai")
    private Date pa_ctime;
    @TableId(value = "pa_subdoc_id")
    private Integer pa_subdoc_id;
    @TableId(value = "pa_nub_visits")
    private Integer pa_nub_visits;
    @TableField("Aff_Hos_addr")
    private String Aff_Hos_addr;
}